<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:param name="tinhthanh"/>
    <xsl:template match="/">
        <select id="ddlTinhThanh" name="tinhthanh" style="width:150px;" onchange="changeQuanHuyen('ddlTinhThanh',document.getElementById('ddlQuanHuyen'));">
            
            <xsl:for-each select="dskhuvuc/tinhthanh">
                <xsl:choose>
                    <xsl:when test="./tentinhthanh = $tinhthanh">
                        <option selected="true">
                            <xsl:value-of select="./tentinhthanh"/>
                        </option>
                    </xsl:when>
                    <xsl:otherwise>
                        <option>
                            <xsl:value-of select="./tentinhthanh"/>
                        </option>
                    </xsl:otherwise>

                </xsl:choose>
                
            </xsl:for-each>
        </select>
    </xsl:template>

</xsl:stylesheet>
